home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / pgenheaders.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  1.6 KB  |  68 lines

  1. #ifndef Py_PGENHEADERS_H
  2. #define Py_PGENHEADERS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* Include files and extern declarations used by most of the parser. */
  8.  
  9. #include "config.h"
  10.  
  11. /* config.h may or may not define DL_IMPORT */
  12. #ifndef DL_IMPORT    /* declarations for DLL import/export */
  13. #define DL_IMPORT(RTYPE) RTYPE
  14. #endif
  15.  
  16. #include <stdio.h>
  17. #include <string.h>
  18.  
  19. #ifdef THINK_C
  20. #define label label_
  21. #undef label
  22. #endif
  23.  
  24. #ifdef HAVE_STDLIB_H
  25. #include <stdlib.h>
  26. #endif
  27.  
  28. #include "myproto.h"
  29. #include "mymalloc.h"
  30.  
  31. #include "pydebug.h"
  32.  
  33. #ifdef HAVE_STDARG_PROTOTYPES
  34. DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
  35. DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
  36. #else
  37. /* Better to have no prototypes at all for varargs functions in this case */
  38. DL_IMPORT(void) PySys_WriteStdout();
  39. DL_IMPORT(void) PySys_WriteStderr();
  40. #endif
  41.  
  42. #define addarc _Py_addarc
  43. #define addbit _Py_addbit
  44. #define adddfa _Py_adddfa
  45. #define addfirstsets _Py_addfirstsets
  46. #define addlabel _Py_addlabel
  47. #define addstate _Py_addstate
  48. #define delbitset _Py_delbitset
  49. #define dumptree _Py_dumptree
  50. #define findlabel _Py_findlabel
  51. #define mergebitset _Py_mergebitset
  52. #define meta_grammar _Py_meta_grammar
  53. #define newbitset _Py_newbitset
  54. #define newgrammar _Py_newgrammar
  55. #define pgen _Py_pgen
  56. #define printgrammar _Py_printgrammar
  57. #define printnonterminals _Py_printnonterminals
  58. #define printtree _Py_printtree
  59. #define samebitset _Py_samebitset
  60. #define showtree _Py_showtree
  61. #define tok_dump _Py_tok_dump
  62. #define translatelabels _Py_translatelabels
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* !Py_PGENHEADERS_H */
  68.